﻿
function ValueUtil(){
	
}

ValueUtil.prototype = {
	getValueMap:function(){
		var valueMap = new Map();//用于id,name的转换
		
		valueMap.put("高级","ff8080811c48b6cc011c4a4422b90151");
		valueMap.put("中级","ff8080811c48b6cc011c4a444b230155");
		valueMap.put("初级","ff8080811c48b6cc011c4a44732b0156");
		valueMap.put("未评职称","ff8080811d16b533011d181398340254");
		
		valueMap.put("博士","ff8080811c48b6cc011c4a41c3f50143");
		valueMap.put("硕士","ff8080811c48b6cc011c4a428cb60147");   
		valueMap.put("本科","ff8080811c48b6cc011c4a42cc3f0148"); 
		valueMap.put("大专","ff8080811c48b6cc011c4a43174a014a");
		valueMap.put("高中或中专","ff8080811c48b6cc011c4a436aa1014e");
		valueMap.put("初中或以下","ff8080811c48b6cc011c4a4393b9014f");
		
		valueMap.put("在职","ff8080811c43906f011c44b338f1002f");
		valueMap.put("退休","ff8080811c43906f011c44b364ee0032");
		valueMap.put("离休","ff8080811c43906f011c44b38cd70033");

	    valueMap.put("正科","ff8080811c43906f011c44b75b850039");
	    valueMap.put("享受正科","ff8080811c43906f011c44b79a9e003a");
	    valueMap.put("副科","ff8080811c43906f011c44b7c3ea003b");
	    valueMap.put("享受副科","ff8080811c43906f011c44b7f864003c");
	    valueMap.put("正股","ff8080811c43906f011c44b82c10003d");
	    valueMap.put("享受正股","ff8080811c43906f011c44b871c1003e");
	    valueMap.put("副股","ff8080811c43906f011c44b89b37003f");
	    valueMap.put("科员","ff8080811c43906f011c44b8c3c30040");
	    valueMap.put("试用期","ff8080811c43906f011c44f60af00162");
	    valueMap.put("享受副处","ff8080811c43906f011c45254240017e");
	    valueMap.put("享受副股","ff8080811c43906f011c452ab415017f");
	    
	    
	    valueMap.put("班子正职","ff8080811c43906f011c44b4ea580034");
	    valueMap.put("班子副职","ff8080811c43906f011c44b55efc0035");
	    valueMap.put("中层正职","ff8080811c43906f011c44b59d6a0036");
	    valueMap.put("中层副职","ff8080811c43906f011c44b5ccc80037");
	    valueMap.put("主任助理","ff8080811c43906f011c44b614a50038");
	    valueMap.put("事业单位正职","ff8080811c48b6cc011c4a44f9f40158");
	    valueMap.put("事业单位副职","ff8080811c48b6cc011c4a45271f0159");
	    valueMap.put("保安队队长","ff8080811c48b6cc011c4a45795a015d");
	    valueMap.put("保安队副队长","ff8080811c48b6cc011c4a45a851015e");
	    valueMap.put("主厨","ff8080811c48b6cc011c4b3c950f01ee");
	    valueMap.put("副厨","ff8080811c48b6cc011c4b3cf51001ef");
	    valueMap.put("无任职","ff8080811c90cfd4011c91c71fa20000");
	    valueMap.put("社区正职","ff8080811c9315a5011c934ad52202e5");
	    valueMap.put("社区副职","ff8080811c9315a5011c934af71402e6");
	    valueMap.put("副主任","ff8080811c9c448d011c9ca3eadb049e");
	    valueMap.put("副职","ff8080811c9e7440011c9ec9c16c0000");
	    valueMap.put("正职","ff8080811c9e7440011c9eca05e00001");
	    valueMap.put("一般干部","ff8080811c9e7440011c9eca2faf0002");
	    valueMap.put("校长","ff8080811d16b533011d181485340256");
	    valueMap.put("正职待遇","ff80808125b2d7170125b52ed00301d0");
	    valueMap.put("副职待遇","ff80808125b2d7170125b52eeca801d1");
	    valueMap.put("主任助理及事业单位正职待遇","ff80808125b2d7170125b52f332001d2");
	    valueMap.put("事业单位副职待遇","ff80808125b2d7170125b52f5ee701d3");
	    valueMap.put("司机副队长","ff80808125b2d7170125b5340a6701d5");
	    valueMap.put("司机队长","ff80808125b2d7170125b5342f4e01d6");
	    
	    valueMap.put("是","1");
	    valueMap.put("否","0");
	    
	    valueMap.put("男","1");
	    valueMap.put("女","0");
	    
	    valueMap.put("在职公务员","ff8080811c43906f011c44b27c01002c");
	    valueMap.put("退休公务员","ff8080811c43906f011c44b2b54a002d");
	    valueMap.put("离休干部","ff8080811c43906f011c44b2ead5002e");
	    valueMap.put("行政人员","ff8080811c48b6cc011c4a3c95dd0138");
	    valueMap.put("司机","ff8080811c48b6cc011c4a3cc9e70139");
	    valueMap.put("服务员","ff8080811c48b6cc011c4a3cf6be013a");
	    valueMap.put("保安","ff8080811c48b6cc011c4a3d1c32013b");
	    valueMap.put("厨工","ff8080811c48b6cc011c4a3d66ff013c");
	    valueMap.put("退休职工","ff8080811c48b6cc011c4a3dbbf0013e");
	    valueMap.put("村“两委”干部","ff8080811ca3543a011ca3983fb00000");
	    valueMap.put("在职教师","ff8080811d16b533011d18123e0d0252");
	    valueMap.put("退休教师","ff8080811d16b533011d181261df0253");
	    valueMap.put("一般特聘人员","ff80808125b2d7170125b540f4f30214");
	    valueMap.put("高级特聘人员","ff80808125b2d7170125b54127960218");
	    
	    valueMap.put("基本工资","ff8080811c48b6cc011c4a6bea55017f");
		valueMap.put("职务工资","ff8080811c43906f011c44c42e15004f");
		valueMap.put("职务补贴","ff8080811c48b6cc011c4a66f050017a");
		valueMap.put("住房补贴","ff8080811c48b6cc011c4a6c3e800181");
		valueMap.put("奖励工资","ff8080811c43906f011c44c534430053");
		valueMap.put("水电费","ff8080811c48b6cc011c4a6c12040180");
		
	    return valueMap;
		
	},
	getVarMap:function(){
		var varMap = new Map();//用于判断变量是否有效
		
		varMap.put("职称".trim(),1);
		varMap.put("高级".trim(),1);
		varMap.put("中级".trim(),1);
		varMap.put("初级".trim(),1);
		varMap.put("未评职称".trim(),1);
		
		varMap.put("学历".trim(),1);
		varMap.put("博士".trim(),1);
		varMap.put("硕士".trim(),1);
		varMap.put("本科".trim(),1);
		varMap.put("大专".trim(),1);
		varMap.put("高中或中专".trim(),1);
		varMap.put("初中或以下".trim(),1);
		
		varMap.put("工作状态".trim(),1);
		varMap.put("在职".trim(),1);
		varMap.put("退休".trim(),1);
	    varMap.put("离休".trim(),1);
	    
	    varMap.put("级别".trim(),1);
	    varMap.put("正科".trim(),1);
	    varMap.put("享受正科".trim(),1);
	    varMap.put("副科".trim(),1);
	    varMap.put("享受副科".trim(),1);
	    varMap.put("正股".trim(),1);
	    varMap.put("享受正股".trim(),1);
	    varMap.put("副股".trim(),1);
	    varMap.put("科员".trim(),1);
	    varMap.put("试用期".trim(),1);
	    varMap.put("享受副处".trim(),1);
	    varMap.put("享受副股".trim(),1);
	    
	    varMap.put("职务".trim(),1);
	    varMap.put("班子正职".trim(),1);
	    varMap.put("班子副职".trim(),1);
	    varMap.put("中层正职".trim(),1);
	    varMap.put("中层副职".trim(),1);
	    varMap.put("主任助理".trim(),1);
	    varMap.put("事业单位正职".trim(),1);
	    varMap.put("事业单位副职".trim(),1);
	    varMap.put("保安队队长".trim(),1);
	    varMap.put("保安队副队长".trim(),1);
	    varMap.put("主厨".trim(),1);
	    varMap.put("副厨".trim(),1);
	    varMap.put("无任职".trim(),1); 
	    varMap.put("社区正职".trim(),1);
	    varMap.put("社区副职".trim(),1);
	    varMap.put("副主任".trim(),1);
	    varMap.put("副职".trim(),1);
	    varMap.put("正职".trim(),1);
	    varMap.put("一般干部".trim(),1);
	    varMap.put("校长".trim(),1);
	    varMap.put("正职待遇".trim(),1);
	    varMap.put("副职待遇".trim(),1);
	    varMap.put("主任助理及事业单位正职待遇".trim(),1);
	    varMap.put("事业单位副职待遇".trim(),1);
	    varMap.put("司机副队长".trim(),1);
	    varMap.put("司机队长".trim(),1);
	    
	    varMap.put("私车公用".trim(),1);
	    varMap.put("是".trim(),1);
	    varMap.put("否".trim(),1);
	    
	    varMap.put("性别".trim(),1);
	    varMap.put("男".trim(),1);
	    varMap.put("女".trim(),1);
	    
	    varMap.put("人员类别".trim(),1);
	    varMap.put("在职公务员".trim(),1);
	    varMap.put("退休公务员".trim(),1);
	    varMap.put("离休干部".trim(),1);
	    varMap.put("行政人员".trim(),1);
	    varMap.put("司机".trim(),1);
	    varMap.put("服务员".trim(),1);
	    varMap.put("保安".trim(),1);
	    varMap.put("厨工".trim(),1);
	    varMap.put("退休职工".trim(),1);
	    varMap.put("村“两委”干部".trim(),1);
	    varMap.put("在职教师".trim(),1);
	    varMap.put("退休教师".trim(),1);
	    varMap.put("一般特聘人员".trim(),1);
	    varMap.put("高级特聘人员".trim(),1);
	    
	    varMap.put("出生日期",1);
		varMap.put("工作时间",1);
		varMap.put("离退休时间",1);
	    
		varMap.put("基本工资".trim(),1);
		varMap.put("职务工资".trim(),1);
		varMap.put("职务补贴".trim(),1);
		varMap.put("住房补贴".trim(),1);
		varMap.put("奖励工资".trim(),1);
		varMap.put("水电费".trim(),1);
		
	    return varMap;
	}, 
	//通过点击项目改变条件项目的值
	changeItemValue:function(itemObj){
		var itemValueObj = document.getElementById("itemValue");
		itemValueObj.options.length = 0;//删除原来的项目值
		var item = itemObj.value;
		
		if(item=="职称"){
			//改变项目的值
			itemValueObj.add(new Option("高级","高级"));
		
			itemValueObj.add(new Option("中级","中级"));
		
			itemValueObj.add(new Option("初级","初级"));
		
			itemValueObj.add(new Option("未评职称","未评职称"));
			
			return;//返回
		}
	
		if(item=="学历"){
			//改变项目的值
			itemValueObj.add(new Option("博士","博士"));
		
			itemValueObj.add(new Option("硕士","硕士"));
		
			itemValueObj.add(new Option("本科","本科"));
		
			itemValueObj.add(new Option("大专","大专"));
		
			itemValueObj.add(new Option("高中或中专","高中或中专"));
		
			itemValueObj.add(new Option("初中或以下","初中或以下"));
			
			return;//返回
		}
	
		if(item=="工作状态"){
			//改变项目的值
			itemValueObj.add(new Option("在职","在职"));
		
			itemValueObj.add(new Option("退休","退休"));
		
			itemValueObj.add(new Option("离休","离休"));
			
			return;//返回
		}
	
		if(item=="级别"){
			//改变项目的值
			itemValueObj.add(new Option("正科","正科"));
		
			itemValueObj.add(new Option("享受正科","享受正科"));
		
			itemValueObj.add(new Option("副科","副科"));
		
			itemValueObj.add(new Option("享受副科","享受副科"));
		
			itemValueObj.add(new Option("正股","正股"));
		
			itemValueObj.add(new Option("享受正股","享受正股"));
		
			itemValueObj.add(new Option("副股","副股"));
		
			itemValueObj.add(new Option("科员","科员"));
		
			itemValueObj.add(new Option("试用期","试用期"));
		
			itemValueObj.add(new Option("享受副处","享受副处"));
		
			itemValueObj.add(new Option("享受副股","享受副股"));
			
			return;//返回
		}
	
		if(item=="职务"){
			//改变项目的值
			itemValueObj.add(new Option("班子正职","班子正职"));
		
			itemValueObj.add(new Option("班子副职","班子副职"));
		
			itemValueObj.add(new Option("中层正职","中层正职"));
		
			itemValueObj.add(new Option("中层副职","中层副职"));
		
			itemValueObj.add(new Option("主任助理","主任助理"));
		
			itemValueObj.add(new Option("事业单位正职","事业单位正职"));
		
			itemValueObj.add(new Option("事业单位副职","事业单位副职"));
		
			itemValueObj.add(new Option("保安队队长","保安队队长"));
		
			itemValueObj.add(new Option("保安队副队长","保安队副队长"));
		
			itemValueObj.add(new Option("主厨","主厨"));
		
			itemValueObj.add(new Option("副厨","副厨"));
		
			itemValueObj.add(new Option("无任职","无任职"));
		
			itemValueObj.add(new Option("社区正职","社区正职"));
		
			itemValueObj.add(new Option("社区副职","社区副职"));
		
			itemValueObj.add(new Option("副主任","副主任"));
		
			itemValueObj.add(new Option("副职","副职"));
		
			itemValueObj.add(new Option("正职","正职"));
		
			itemValueObj.add(new Option("一般干部","一般干部"));
		
			itemValueObj.add(new Option("校长","校长"));
		
			itemValueObj.add(new Option("正职待遇","正职待遇"));
		
			itemValueObj.add(new Option("副职待遇","副职待遇"));
		
			itemValueObj.add(new Option("主任助理及事业单位正职待遇","主任助理及事业单位正职待遇"));
		
			itemValueObj.add(new Option("事业单位副职待遇","事业单位副职待遇"));
		
			itemValueObj.add(new Option("司机副队长","司机副队长"));
		
			itemValueObj.add(new Option("司机队长","司机队长"));
			
			return;//返回
		}
	
		if(item=="私车公用"){
			//改变项目的值
			itemValueObj.add(new Option("是","是"));
		
			itemValueObj.add(new Option("否","否"));
			
			return;//返回
		}
	
		if(item=="性别"){
			//改变项目的值
			itemValueObj.add(new Option("男","男"));
		
			itemValueObj.add(new Option("女","女"));
			
			return;//返回
		}
	
		if(item=="人员类别"){
			//改变项目的值
			itemValueObj.add(new Option("在职公务员","在职公务员"));
		
			itemValueObj.add(new Option("退休公务员","退休公务员"));
		
			itemValueObj.add(new Option("离休干部","离休干部"));
		
			itemValueObj.add(new Option("行政人员","行政人员"));
		
			itemValueObj.add(new Option("司机","司机"));
		
			itemValueObj.add(new Option("服务员","服务员"));
		
			itemValueObj.add(new Option("保安","保安"));
		
			itemValueObj.add(new Option("厨工","厨工"));
		
			itemValueObj.add(new Option("退休职工","退休职工"));
		
			itemValueObj.add(new Option("村“两委”干部","村“两委”干部"));
		
			itemValueObj.add(new Option("在职教师","在职教师"));
		
			itemValueObj.add(new Option("退休教师","退休教师"));
		
			itemValueObj.add(new Option("一般特聘人员","一般特聘人员"));
		
			itemValueObj.add(new Option("高级特聘人员","高级特聘人员"));
			
			return;//返回
		}
	}
}